Skip to content

refactor: bundle deploy skill in desktop static skills#957

Open
alchemistklk wants to merge 5 commits intomainfrom
feat/colleague-skill-remote-deploy-mainline
Open

refactor: bundle deploy skill in desktop static skills#957
alchemistklk wants to merge 5 commits intomainfrom
feat/colleague-skill-remote-deploy-mainline

Conversation

@alchemistklk
Copy link
Copy Markdown
Contributor

Summary

  • move the latest client deploy skill into apps/desktop/static/bundled-skills
  • rename the skill to deploy-skill and update scripts, config names, and tests
  • remove legacy skills/localdev and skills/nexubot directories

Verification

  • pnpm exec vitest run tests/skills/deploy-skill-core.test.ts
  • packaged the bundled skill to Desktop as deploy-skill.zip

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1dff1fff45

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

} from "node:fs/promises";
import path from "node:path";
import { fileURLToPath } from "node:url";
import JSZip from "jszip";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove unresolved jszip import from bundled skill

This bundled skill imports jszip at module load time, but packaged desktop runtime only exposes bundled-node-modules to skill scripts (buildSkillNodePath in apps/desktop/main/runtime/manifests.ts), and packaging only copies sharp/@img there (apps/desktop/package.json extraResources). Because this skill has no colocated node_modules, import JSZip from "jszip" will fail in packaged builds before any command (setup, check, submit, etc.) can run.

Useful? React with 👍 / 👎.

Comment on lines +17 to +18
const DISTILL_AVATAR_ROOT =
"/Users/alche/Downloads/distill-campaign-clone/images";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace machine-specific avatar path with bundled assets

Template deploys are hard-coded to read avatars from /Users/alche/Downloads/distill-campaign-clone/images, so submit --template-id distill-campaign will throw ENOENT on any machine that does not have that exact local path. Since selectRandomAvatar() always reads this directory before rendering, template-based deploys are effectively broken outside the author’s workstation.

Useful? React with 👍 / 👎.

Comment on lines +820 to +822
const statusPayload = parseStatusResponse(payload);
const nextJob = mergeJobWithStatus(currentJob, statusPayload, deps.nowImpl);
await savePageDeployJobs(input.nexuHome, upsertJob(jobs, nextJob));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Verify status payload jobId before updating local job

queryPageDeployJob parses the remote status response and writes it into the local record without checking that payload.jobId matches the requested input.jobId. If the API ever returns a mismatched job payload (cache/proxy/server bug), this code can mark the wrong local job as succeeded/failed and produce an incorrect user-facing completion message.

Useful? React with 👍 / 👎.

@sentry
Copy link
Copy Markdown

sentry Bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 9, 2026

Deploying nexu-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0069375
Status: ✅  Deploy successful!
Preview URL: https://6fc42402.nexu-docs.pages.dev
Branch Preview URL: https://feat-colleague-skill-remote.nexu-docs.pages.dev

View logs

…ated styles

Replace poster-bg/qr with consolidated poster image, add 7 portrait PNGs,
rework campaign styles, and update deploy skill core logic and tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant